Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[MusicXML] Support for notehead names #737

Draft
wants to merge 1 commit into
base: 3.x
Choose a base branch
from
Draft

Conversation

Jojo-Schmitz
Copy link
Owner

Backport of musescore#25916

QRegExp nameparts("^note([A-Z][a-z]*)(Sharp|Flat)?");
const char* noteheadName = Sym::id2name(note->noteHead());
#if QT_VERSION >= QT_VERSION_CHECK(5, 11, 0)
QStringList matches = QString::fromLatin1(noteheadName).split(nameparts, Qt::SkipEmptyParts);
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not right. Need to find an equivalent for the original PR's

        StringList matches = String::fromAscii(noteheadName.ascii()).search(nameparts, { 1, 2 }, SplitBehavior::SkipEmptyParts);

@Jojo-Schmitz Jojo-Schmitz marked this pull request as draft December 27, 2024 09:42
@Jojo-Schmitz Jojo-Schmitz force-pushed the 3.x branch 2 times, most recently from 9326c7c to 88927e8 Compare January 6, 2025 11:42
@Jojo-Schmitz Jojo-Schmitz force-pushed the 3.x branch 20 times, most recently from e03471a to a4d9423 Compare January 10, 2025 20:38
@Jojo-Schmitz Jojo-Schmitz force-pushed the 3.x branch 2 times, most recently from 80f2c72 to 19855f7 Compare January 18, 2025 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants